<div class="content">
	<h2><?php echo $title ?></h2>
	<p id="bottom_link"><a class="add" href="<?php echo site_url().'agama/add'?>">Tambah</a></p>
	<table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<th><div align="center">No</div></th>
			<th><div align="center">Nama Agama</div></th>
			<th><div align="center">Aksi</div></th>
		</tr>

	<?php 
	$i = 1 + $urut ;
	foreach($query as $row):  ?>
		<tr class="<?php if ($i %2 == 0):echo "zebra";else:echo "zebra2"; endif;?>"> 
			<td><?php echo $i?></td>
			<td><?php echo $row['nama_agama']; ?></td>
			<td><div class="action"><a class="update" href="<?php echo site_url().'agama/edit/'.$row['id_agama'].'/'.$i?>">Edit</a> 
			<a class="delete" href="<?php echo site_url().'agama/delete/'.$row['id_agama'].'/'.$i?>">Hapus</a></div></td>
		</tr>
	<?php 
	$i++;
	endforeach;?>
	</table>
	<br />
	<?php if($this->pagination->create_links()==TRUE):?>
	<p id="pagination">Halaman : <?php echo $this->pagination->create_links(); ?></p>
	<?php endif; ?>
</div>